package com.gongj.bean;


import org.springframework.beans.factory.InitializingBean;

public class User {
	public User() {
	}

	public User(String name, String address) {
		this.name = name;
		this.address = address;
	}

	@Override
	public String toString() {
		return "User{" +
				"name='" + name + '\'' +
				", address='" + address + '\'' +
				", vip=" + vip +
				'}';
	}

	private String name;
	private String address;
	private Vip vip;
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Vip getVip() {
		return vip;
	}

	public void setVip(Vip vip) {
		this.vip = vip;
	}


	// 内部Bean测试
	public class Vip {
		public String vipLevel;

		public String getVipLevel() {
			return vipLevel;
		}

		public void setVipLevel(String vipLevel) {
			this.vipLevel = vipLevel;
		}
	}
}
